﻿<common:LayoutAwarePage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.Symmetry"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:PropGrid="using:EString"
    xmlns:common="using:EString.Common"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:mss="using:EString"
    xmlns:Controls="using:EString.Controls"
    xmlns:Plugins="using:EString.Plugins" xmlns:PropertyGrid="using:EString.PropertyGrid" xmlns:Marquee="using:EString.Controls.Marquee" x:Name="userControl"
    x:Class="EString.Symmetry.SymmetryControl"
    mc:Ignorable="d"
    d:DesignHeight="1133"
    d:DesignWidth="433.333">
    <common:LayoutAwarePage.Resources>
        <ResourceDictionary>
            
            
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ms-appx:///Symmetry/Resources/PropertyGridTheme.xaml"/>                
				<ResourceDictionary Source="ms-appx:///Symmetry/Resources/GlobalResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            
            <DataTemplate x:Key="VisualTree_NodeTemplate1" >
                <Grid>
                    <Controls:CustomTreeNode Margin="0,0,-80,6" />
                </Grid>
            </DataTemplate>
            
            <Style x:Key="ListBoxItemStyle1" TargetType="ListBoxItem">
            	<Setter Property="Background" Value="Transparent"/>
            	<Setter Property="TabNavigation" Value="Local"/>
            	<Setter Property="Padding" Value="8,10"/>
            	<Setter Property="HorizontalContentAlignment" Value="Left"/>
            	<Setter Property="Template">
            		<Setter.Value>
            			<ControlTemplate TargetType="ListBoxItem">
            				<Border x:Name="LayoutRoot" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
            					<VisualStateManager.VisualStateGroups>
            						<VisualStateGroup x:Name="CommonStates">
            							<VisualState x:Name="Normal"/>
            							<VisualState x:Name="PointerOver"/>
            							<VisualState x:Name="Disabled">
            								<Storyboard>
            									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="LayoutRoot">
            										<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
            									</ObjectAnimationUsingKeyFrames>
            									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
            										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListBoxItemDisabledForegroundThemeBrush}"/>
            									</ObjectAnimationUsingKeyFrames>
            								</Storyboard>
            							</VisualState>
            							<VisualState x:Name="Pressed"/>
            						</VisualStateGroup>
            						<VisualStateGroup x:Name="SelectionStates">
            							<VisualState x:Name="Unselected"/>
            							<VisualState x:Name="Selected">
            								<Storyboard>
            									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
            										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListBoxItemSelectedForegroundThemeBrush}"/>
            									</ObjectAnimationUsingKeyFrames>
            								</Storyboard>
            							</VisualState>
            							<VisualState x:Name="SelectedUnfocused">
            								<Storyboard>
            									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
            										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListBoxItemSelectedForegroundThemeBrush}"/>
            									</ObjectAnimationUsingKeyFrames>
            								</Storyboard>
            							</VisualState>
            							<VisualState x:Name="SelectedDisabled">
            								<Storyboard>
            									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
            										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListBoxItemSelectedDisabledForegroundThemeBrush}"/>
            									</ObjectAnimationUsingKeyFrames>
            								</Storyboard>
            							</VisualState>
            							<VisualState x:Name="SelectedPointerOver">
            								<Storyboard>
            									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
            										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListBoxItemSelectedForegroundThemeBrush}"/>
            									</ObjectAnimationUsingKeyFrames>
            								</Storyboard>
            							</VisualState>
            							<VisualState x:Name="SelectedPressed">
            								<Storyboard>
            									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
            										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ListBoxItemSelectedForegroundThemeBrush}"/>
            									</ObjectAnimationUsingKeyFrames>
            								</Storyboard>
            							</VisualState>
            						</VisualStateGroup>
            						<VisualStateGroup x:Name="FocusStates">
            							<VisualState x:Name="Focused"/>
            							<VisualState x:Name="Unfocused"/>
            							<VisualState x:Name="PointerFocused"/>
            						</VisualStateGroup>
            					</VisualStateManager.VisualStateGroups>
            					<Grid x:Name="InnerGrid" Background="Transparent" VerticalAlignment="Top">
            						<Rectangle x:Name="PressedBackground" Fill="{StaticResource ListBoxItemPressedBackgroundThemeBrush}" Opacity="0" Margin="0,0,0,0"/>
            						<ContentPresenter x:Name="ContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTransitions="{TemplateBinding ContentTransitions}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="8,10,8,0" VerticalAlignment="Top"/>
            						<Rectangle x:Name="FocusVisualWhite" Opacity="0" StrokeDashOffset=".5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}" StrokeDashArray="1,1" Margin="0,0,0,0"/>
            						<Rectangle x:Name="FocusVisualBlack" Opacity="0" StrokeDashOffset="1.5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}" StrokeDashArray="1,1" Margin="0,0,0,0"/>
            					</Grid>
            				</Border>
            			</ControlTemplate>
            		</Setter.Value>
            	</Setter>
            </Style>
            <Style x:Key="MenuButtonStyle" TargetType="Button">
                <Setter Property="Background" Value="{StaticResource ButtonBackgroundThemeBrush}"/>
                <Setter Property="Foreground" Value="{StaticResource ButtonForegroundThemeBrush}"/>
                <Setter Property="BorderBrush" Value="{StaticResource ButtonBorderThemeBrush}"/>
                <Setter Property="BorderThickness" Value="{StaticResource ButtonBorderThemeThickness}"/>
                <Setter Property="Padding" Value="12,4,12,4"/>
                <Setter Property="HorizontalAlignment" Value="Left"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}"/>
                <Setter Property="FontWeight" Value="SemiBold"/>
                <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <Grid>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="PointerOver">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPointerOverBackgroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPointerOverForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPressedBackgroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPressedForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledBackgroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledBorderThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledForegroundThemeBrush}"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                        <VisualState x:Name="Focused">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualWhite"/>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualBlack"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Unfocused"/>
                                        <VisualState x:Name="PointerFocused"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="3">
                                    <TextBlock x:Name="ContentPresenter" Text="{TemplateBinding Content}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                </Border>
                                <Rectangle x:Name="FocusVisualWhite" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="1.5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}" StrokeDashArray="1,1"/>
                                <Rectangle x:Name="FocusVisualBlack" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="0.5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}" StrokeDashArray="1,1"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="FlipViewStyle1" TargetType="FlipView">
            	<Setter Property="Background" Value="Transparent"/>
            	<Setter Property="BorderThickness" Value="0"/>
            	<Setter Property="TabNavigation" Value="Once"/>
            	<Setter Property="IsTabStop" Value="False"/>
            	<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
            	<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
            	<Setter Property="ScrollViewer.IsHorizontalRailEnabled" Value="False"/>
            	<Setter Property="ScrollViewer.IsVerticalRailEnabled" Value="False"/>
            	<Setter Property="ScrollViewer.IsHorizontalScrollChainingEnabled" Value="True"/>
            	<Setter Property="ScrollViewer.IsVerticalScrollChainingEnabled" Value="True"/>
            	<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
            	<Setter Property="ScrollViewer.BringIntoViewOnFocusChange" Value="True"/>
            	<Setter Property="ItemsPanel">
            		<Setter.Value>
            			<ItemsPanelTemplate>
            				<VirtualizingStackPanel AreScrollSnapPointsRegular="True" Orientation="Horizontal"/>
            			</ItemsPanelTemplate>
            		</Setter.Value>
            	</Setter>
            	<Setter Property="Template">
            		<Setter.Value>
            			<ControlTemplate TargetType="FlipView">
            				<Grid>
            					<VisualStateManager.VisualStateGroups>
            						<VisualStateGroup x:Name="FocusStates">
            							<VisualState x:Name="Focused">
            								<Storyboard>
            									<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualWhite"/>
            									<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualBlack"/>
            								</Storyboard>
            							</VisualState>
            							<VisualState x:Name="Unfocused"/>
            							<VisualState x:Name="PointerFocused"/>
            						</VisualStateGroup>
            					</VisualStateManager.VisualStateGroups>
            					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="3">
            						<Border.Resources>
            							<ControlTemplate x:Key="HorizontalNextTemplate" TargetType="Button">
            								<Border x:Name="Root" BorderBrush="{StaticResource FlipViewButtonBorderThemeBrush}" BorderThickness="{StaticResource FlipViewButtonBorderThemeThickness}" Background="{StaticResource FlipViewButtonBackgroundThemeBrush}">
            									<VisualStateManager.VisualStateGroups>
            										<VisualStateGroup x:Name="CommonStates">
            											<VisualState x:Name="Normal"/>
            											<VisualState x:Name="PointerOver">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            											<VisualState x:Name="Pressed">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            										</VisualStateGroup>
            									</VisualStateManager.VisualStateGroups>
            									<Path x:Name="Arrow" Data="M4.12,0 L9.67,5.47 L4.12,10.94 L0,10.88 L5.56,5.47 L0,0.06 z" Fill="{StaticResource FlipViewButtonForegroundThemeBrush}" HorizontalAlignment="Center" Height="10.94" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="9.67"/>
            								</Border>
            							</ControlTemplate>
            							<ControlTemplate x:Key="HorizontalPreviousTemplate" TargetType="Button">
            								<Border x:Name="Root" BorderBrush="{StaticResource FlipViewButtonBorderThemeBrush}" BorderThickness="{StaticResource FlipViewButtonBorderThemeThickness}" Background="{StaticResource FlipViewButtonBackgroundThemeBrush}">
            									<VisualStateManager.VisualStateGroups>
            										<VisualStateGroup x:Name="CommonStates">
            											<VisualState x:Name="Normal"/>
            											<VisualState x:Name="PointerOver">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            											<VisualState x:Name="Pressed">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            										</VisualStateGroup>
            									</VisualStateManager.VisualStateGroups>
            									<Path x:Name="Arrow" Data="M5.55,0 L9.67,0.06 L4.12,5.47 L9.67,10.88 L5.55,10.94 L0,5.48 z" Fill="{StaticResource FlipViewButtonForegroundThemeBrush}" HorizontalAlignment="Center" Height="10.94" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="9.67"/>
            								</Border>
            							</ControlTemplate>
            							<ControlTemplate x:Key="VerticalNextTemplate" TargetType="Button">
            								<Border x:Name="Root" BorderBrush="{StaticResource FlipViewButtonBorderThemeBrush}" BorderThickness="{StaticResource FlipViewButtonBorderThemeThickness}" Background="{StaticResource FlipViewButtonBackgroundThemeBrush}">
            									<VisualStateManager.VisualStateGroups>
            										<VisualStateGroup x:Name="CommonStates">
            											<VisualState x:Name="Normal"/>
            											<VisualState x:Name="PointerOver">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            											<VisualState x:Name="Pressed">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            										</VisualStateGroup>
            									</VisualStateManager.VisualStateGroups>
            									<Path x:Name="Arrow" Data="M0.06,0 L5.47,5.56 L10.88,0 L10.94,4.12 L5.48,9.67 L0,4.12 z" Fill="{StaticResource FlipViewButtonForegroundThemeBrush}" HorizontalAlignment="Center" Height="9.67" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="10.94"/>
            								</Border>
            							</ControlTemplate>
            							<ControlTemplate x:Key="VerticalPreviousTemplate" TargetType="Button">
            								<Border x:Name="Root" BorderBrush="{StaticResource FlipViewButtonBorderThemeBrush}" BorderThickness="{StaticResource FlipViewButtonBorderThemeThickness}" Background="{StaticResource FlipViewButtonBackgroundThemeBrush}">
            									<VisualStateManager.VisualStateGroups>
            										<VisualStateGroup x:Name="CommonStates">
            											<VisualState x:Name="Normal"/>
            											<VisualState x:Name="PointerOver">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPointerOverForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            											<VisualState x:Name="Pressed">
            												<Storyboard>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBackgroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Root">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedBorderThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            													<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="Arrow">
            														<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FlipViewButtonPressedForegroundThemeBrush}"/>
            													</ObjectAnimationUsingKeyFrames>
            												</Storyboard>
            											</VisualState>
            										</VisualStateGroup>
            									</VisualStateManager.VisualStateGroups>
            									<Path x:Name="Arrow" Data="M5.63,0 L11.11,5.55 L11.05,9.67 L5.64,4.12 L0.23,9.67 L0.17,5.55 z" Fill="{StaticResource FlipViewButtonForegroundThemeBrush}" HorizontalAlignment="Center" Height="9.67" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Center" Width="10.94"/>
            								</Border>
            							</ControlTemplate>
            						</Border.Resources>
            						<Grid>
            							<ScrollViewer x:Name="ScrollingHost" BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalSnapPointsType="MandatorySingle" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsHorizontalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsHorizontalScrollChainingEnabled}" IsVerticalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsVerticalScrollChainingEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}" VerticalSnapPointsType="MandatorySingle" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled">
            								<ItemsPresenter/>
            							</ScrollViewer>
            							<Button x:Name="PreviousButtonHorizontal" HorizontalAlignment="Left" Height="30" IsTabStop="False" Template="{StaticResource HorizontalPreviousTemplate}" VerticalAlignment="Bottom" Width="60" Margin="5,0,0,20" Visibility="Collapsed"/>
            							<Button x:Name="NextButtonHorizontal" HorizontalAlignment="Right" Height="30" IsTabStop="False" Template="{StaticResource HorizontalNextTemplate}" VerticalAlignment="Bottom" Width="60" Margin="0,0,5,20"/>
            							<Button x:Name="PreviousButtonVertical" HorizontalAlignment="Center" Height="40" IsTabStop="False" Template="{StaticResource VerticalPreviousTemplate}" VerticalAlignment="Top" Width="70"/>
            							<Button x:Name="NextButtonVertical" HorizontalAlignment="Center" Height="40" IsTabStop="False" Template="{StaticResource VerticalNextTemplate}" VerticalAlignment="Bottom" Width="70"/>
            						</Grid>
            					</Border>
            					<Rectangle x:Name="FocusVisualWhite" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="1.5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}" StrokeDashArray="1,1"/>
            					<Rectangle x:Name="FocusVisualBlack" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="0.5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}" StrokeDashArray="1,1"/>
            				</Grid>
            			</ControlTemplate>
            		</Setter.Value>
            	</Setter>
            </Style>
        </ResourceDictionary>
    </common:LayoutAwarePage.Resources>

    <Grid x:Name="LayoutRoot" Margin="1" Background="{StaticResource ControlBackgroundBrush}">
    	<VisualStateManager.VisualStateGroups>
    		<VisualStateGroup x:Name="VisualStateGroup">
    			<VisualState x:Name="Normal"/>
    			<VisualState x:Name="Busy">
    				<Storyboard>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="progManager">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<x:Boolean>True</x:Boolean>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="progManager" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ProgText">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<Visibility>Visible</Visibility>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    					<DoubleAnimation Duration="0" To="0.975" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ProgText" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    		</VisualStateGroup>
    	</VisualStateManager.VisualStateGroups>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
    		<RowDefinition/>            
    	</Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <StackPanel x:Name="OldSearchControls" Grid.Column="1" Grid.Row="1" Visibility="Collapsed" d:IsHidden="True">
            <Grid x:Name="GridSearchVT" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBox x:Name="txtFilterTypes" d:LayoutOverrides="Width, Height"/>
                <TextBox x:Name="txtFilterName" d:LayoutOverrides="Width, Height" Grid.Column="1" Margin="4,0,0,0"/>
            </Grid>
            <ProgressBar x:Name="progMain" Height="10" VerticalAlignment="Stretch" />

        </StackPanel>
        <Grid Grid.Row="2" Grid.Column="1">
        	<Grid.RowDefinitions>
        		<RowDefinition Height="0.33*"/>
        		<RowDefinition Height="0.67*"/>
        	</Grid.RowDefinitions>


            
            
        	<Grid>
        		<Grid.RowDefinitions>
        			<RowDefinition/>
        			<RowDefinition Height="Auto"/>
        		</Grid.RowDefinitions>

        		<FlipView x:Name="flipView1" SelectedIndex="0" Style="{StaticResource FlipViewStyle1}" Margin="0,0,0,0">
        			<FlipViewItem x:Name="ShiftClickReminderFlipViewItem">
        				<Controls:ShiftClickReminder x:Name="TheShiftClickReminder"/>
        			</FlipViewItem>
        			<FlipViewItem>

        				<ListBox x:ConnectionId='3' x:Name="tv2"
        					ItemTemplate="{StaticResource VisualTree_NodeTemplate1}"       
        					                                          Background="Transparent" 
        					Style="{StaticResource ListBoxStyle_Symbiant_Metro}" ItemContainerStyle="{StaticResource ListBoxItemStyle1}" MinWidth="{Binding ActualWidth, ElementName=userControl}" >
        					<x:String>FlipViewItem</x:String>
        				</ListBox>

        			</FlipViewItem>
        			<!--<FlipViewItem >
                    <FlipViewItem.Content>
                        <Plugins:PluginsViewer PluginList="{Binding Path=ImportedCustomEditorTypes, ElementName=userControl, Mode=OneWay}" MinWidth="{Binding ActualWidth, ElementName=userControl}" ></Plugins:PluginsViewer>
                    </FlipViewItem.Content>
                </FlipViewItem>-->
        			<FlipViewItem>
        				<Controls:DebugConsole x:Name="TheDebugConsole"/>
        			</FlipViewItem>
        		</FlipView>
        		<VariableSizedWrapGrid x:Name="MenuButtons" UseLayoutRounding="True" Grid.Row="1" Margin="0,0,0,18" Orientation="Horizontal" MaximumRowsOrColumns="24">
        			<Marquee:MarqueeDragBox x:Name="marqueeDragBoxLHSTop" Margin="8,0,0,0" Width="40" Height="40" HorizontalAlignment="Left" VerticalAlignment="Top"/>
        			<Button x:ConnectionId='1' x:Name="btnBuildTree" Content="Expand"                            HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" BorderBrush="{x:Null}" FontSize="13" ToolTipService.ToolTip="Expands current root to its leaves" Margin="10,0,-40,0" Height="40"/>
        			<Button x:ConnectionId='2' x:Name="btnUp" Content="Up"                       HorizontalAlignment="Left" VerticalAlignment="Stretch"  HorizontalContentAlignment="Stretch" BorderBrush="{x:Null}" FontSize="13" Margin="46,0,-52,0" Width="51" Height="40"/>
        			<Button x:Name="btnMore" Content="More" HorizontalAlignment="Left" VerticalAlignment="Center" 
        				HorizontalContentAlignment="Stretch" BorderBrush="{x:Null}" FontSize="13" Command="{Binding CmdShowMainMenu, ElementName=userControl}" Width="68" Margin="53,0,-98,0" Height="40"/>

        		</VariableSizedWrapGrid>
            
        	</Grid>
<!--<FlipView x:Name="flipView1" BorderThickness="1" Grid.Row="1">
                <FlipView.Items>
                    <FlipViewItem>
                        <TextBlock>Hi From flip</TextBlock>
                    </FlipViewItem>
                    <FlipViewItem>
                        <Plugins:PluginsViewer PluginList="{Binding ImportedCustomEditorTypes, ElementName=userControl, Mode=OneWay}" ></Plugins:PluginsViewer>
                    </FlipViewItem>
                </FlipView.Items>
                <FlipView.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Border Background="#FFEE0C0C" Height="Auto" VerticalAlignment="Stretch">
                                <ContentPresenter Content="{Binding}"/>
                            </Border>
                        </Grid>
                    </DataTemplate>
                </FlipView.ItemTemplate>
            </FlipView>-->


            
            
        	<PropertyGrid:PropGrid x:Name="pg2" Grid.Row="1" Height="Auto"  />
        	<Controls:GridSplitterESHoriz Height="5" VerticalAlignment="Bottom"/>
        	<Border x:Name="ProgText" VerticalAlignment="Center" Height="59" Opacity="0.8" Visibility="Collapsed" Background="#52151515" HorizontalAlignment="Center" Width="219" Margin="33,150.5">
        		<TextBlock x:Name="txtProgress" TextWrapping="Wrap" FontSize="13.333" FontFamily="Segoe UI Light" Foreground="{StaticResource EStringOrange}"
				 FontStyle="Italic" 
				 Text="Initializing..." TextTrimming="WordEllipsis" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="12,0"/>   
        	</Border>   
        </Grid>
        <Controls:ProgManager x:Name="progManager" Grid.RowSpan="3" Grid.Row="1" Opacity="0" IsHitTestVisible="False" d:IsHidden="True"/>
        <Rectangle x:Name="rectangle" Fill="#BF515151" Opacity="0" Stroke="Black" IsHitTestVisible="False" d:IsHidden="True"/>
        <Path x:Name="_pointer" Data="M0,0 L15.916667,7.5 C11.166433,8.666667 8.833149,11.416667 7.7498384,15.75 C7.7498384,15.75 0,0 0,0 z" Stretch="Fill" Stroke="Red" UseLayoutRounding="False" IsRightTapEnabled="False" IsHoldingEnabled="False" IsDoubleTapEnabled="False" IsTapEnabled="False" ManipulationMode="None" Margin="-0.5,-0.5,268.583,22.75" Visibility="Collapsed"/>

    </Grid>
</common:LayoutAwarePage>

